package com.course.model;

public class HttpConfigBean {
    int actionIndex;
    boolean errorToast;
    boolean login;
    boolean loadDialog;
    boolean cache;
    String action;
    Class clas;

    public HttpConfigBean(int actionIndex) {
        this.actionIndex = actionIndex;
    }

    public int getActionIndex() {
        return actionIndex;
    }

    public void setActionIndex(int actionIndex) {
        this.actionIndex = actionIndex;
    }

    public HttpConfigBean buildAction(String action) {
        this.action = action;
        return this;
    }

    public HttpConfigBean buildClass(Class clas) {
        this.clas = clas;
        return this;
    }


    public HttpConfigBean buildErrorToast(boolean errorToast) {
        this.errorToast = errorToast;
        return this;
    }


    public HttpConfigBean buildLogin(boolean login) {
        this.login = login;
        return this;
    }

    public HttpConfigBean buildLoadDialog(boolean loadDialog) {
        this.loadDialog = loadDialog;
        return this;
    }

    public HttpConfigBean buildCache(boolean cache) {
        this.cache = cache;
        return this;
    }

    public boolean isErrorToast() {
        return errorToast;
    }

    public void setErrorToast(boolean errorToast) {
        this.errorToast = errorToast;
    }

    public boolean isLogin() {
        return login;
    }

    public void setLogin(boolean login) {
        this.login = login;
    }

    public boolean isLoadDialog() {
        return loadDialog;
    }

    public void setLoadDialog(boolean loadDialog) {
        this.loadDialog = loadDialog;
    }

    public boolean isCache() {
        return cache;
    }

    public void setCache(boolean cache) {
        this.cache = cache;
    }


    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }


    public Class getClas() {
        return clas;
    }

    public void setClas(Class clas) {
        this.clas = clas;
    }
}
